package newfish.contacts.core.dao;

import java.io.Serializable;
import java.util.List;

public interface Dao<T> {
	public void setEntityCls(Class<T> entityCls);

	public void create(T entity);

	public void delete(T entity);

	public String update(T entity);

	public T findById(Serializable id);

	public List<T> listAll();

	public List<T> findList(int pageNo, int pageSize);

	public Integer getCountOfAll();
}
